#include<stdio.h>

  int main()
  {
      int a,b;
      char op;
      scanf("%d %c %d",&a,&op,&b);
     if ((op=='%' || op=='/') && b==0)
      {   printf("Invalid\n");}
  else
   {

      if (op=='+')
        printf("%d %c %d = %d\n",a,op,b,a+b);
      else if (op=='-')
        printf("%d %c %d = %d\n",a,op,b,a-b);
      else if (op=='*')
        printf("%d %c %d = %d\n",a,op,b,a*b);
      else if (op=='/')
        printf("%d %c %d = %d\n",a,op,b,a/b);
      else if (op=='%')
        printf("%d %c %d = %d\n",a,op,b,a%b);
   }
      return 0;
  }
